LOCAL_PATH := $(call my-dir)

#****************************************KoboDeluxe

include $(CLEAR_VARS)

LOCAL_MODULE := koboDeluxe

LOCAL_CPP_EXTENSION := .cpp

INCLUDES = -DKOBO_DATA_DIR=\""kobo-deluxe"\"		\
		-DKOBO_SCORE_DIR=\"""\"	\
		-DKOBO_CONFIG_DIR=\""HOME>>"\"	\
		-DKOBO_CONFIG_FILE=\"".kobodlrc"\"	\
		-DSYSCONF_DIR=\"""\"	\
		-Isound -Igraphics -Ieel -Idata/sfx 

LOCAL_CFLAGS :=-g -O2 -D_GNU_SOURCE=1 -D_REENTRANT

LOCAL_CPPFLAGS := -g -O2 -D_GNU_SOURCE=1 -D_REENTRANT -fpermissive -fexceptions $(INCLUDES)

LOCAL_C_INCLUDES := \
	$(LOCAL_PATH)/../SDL/include \
	$(LOCAL_PATH)/../SDL_image \
	$(LOCAL_PATH)/data/sfx \
	$(LOCAL_PATH)/data/gfx \
	$(LOCAL_PATH)/../SDL/src/video

LOCAL_CPP_INCLUDES := \
	$(LOCAL_PATH)/../SDL/include \
	$(LOCAL_PATH)/../SDL_image \
	$(LOCAL_PATH)/../SDL/src/video

LOCAL_SRC_FILES := $(notdir $(wildcard $(LOCAL_PATH)/*.cpp)) $(notdir $(wildcard $(LOCAL_PATH)/*.c))

LOCAL_STATIC_LIBRARIES := SDL_image png

LOCAL_SHARED_LIBRARIES := SDL

LOCAL_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -llog -lstdc++ -lz

include $(BUILD_SHARED_LIBRARY)